package com.my.bo;

import java.math.BigInteger;
import java.util.List;

import com.my.bean.Order;
import com.my.bean.OrderAccepted;
import com.my.bean.OrderBack;

public interface OrderBo {

	/***************************************** order ***************************************************************************/

	boolean addOrder(Order order) throws Exception;

	Order getOrderById(Class<Order> c, Integer id) throws Exception;

	BigInteger getTotalOrderRecords() throws Exception;

	List<Order> getAllOrderByPage(int pageindex, int pagesize) throws Exception;

	BigInteger searchTotalOrderRecords(Order order) throws Exception;

	List<Order> searchOrderByPage(int pageindex, int pagesize, Order order)
			throws Exception;

	boolean orderAccepted(OrderAccepted orderaccepted) throws Exception;

	BigInteger getTotalOrderRecords2() throws Exception;

	List<Order> getAllOrderByPage2(int pageindex, int pagesize)
			throws Exception;

	BigInteger searchTotalOrderRecords2(Order order) throws Exception;

	List<Order> searchOrderByPage2(int pageindex, int pagesize, Order order)
			throws Exception;

	BigInteger getTotalOrderRecords3() throws Exception;

	List<OrderAccepted> getAllOrderByPage3(int pageindex, int pagesize)
			throws Exception;

	public BigInteger searchTotalOrderRecords3(OrderAccepted orderAccepted)
			throws Exception;

	List<OrderAccepted> searchOrderByPage3(int pageindex, int pagesize,
			OrderAccepted orderAccepted) throws Exception;

	OrderAccepted getOrderAcceptedById(Class<OrderAccepted> c, Integer id)
			throws Exception;

	boolean addOrderBack(OrderBack orderback) throws Exception;

	BigInteger getTotalOrderRecords4() throws Exception;

	List<OrderBack> getAllOrderByPage4(int pageindex, int pagesize)
			throws Exception;

	BigInteger searchTotalOrderRecords4(OrderBack orderback) throws Exception;

	List<OrderBack> searchOrderByPage4(int pageindex, int pagesize,
			OrderBack orderback) throws Exception;
}
